//
//  UIColor+Add.h
//  HDDProject
//
//  Created by 神廷 on 2020/9/27.
//

#import <UIKit/UIKit.h>

/**
 渐变方式
 
 - GradientChangeDirectionLevel:              水平渐变
 - GradientChangeDirectionVertical:           竖直渐变
 - GradientChangeDirectionUpwardDiagonalLine: 向下对角线渐变
 - GradientChangeDirectionDownDiagonalLine:   向上对角线渐变
 */
typedef NS_ENUM(NSInteger, DUEGradientChangeDirection) {
    DUEGradientChangeDirectionLevel,
    DUEGradientChangeDirectionVertical,
    DUEGradientChangeDirectionUpwardDiagonalLine,
    DUEGradientChangeDirectionDownDiagonalLine,
};

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (Add)

/** App主题颜色 */
+ (UIColor *)appColor;

+ (UIColor *)appBGColor;

/** App导航标题颜色 */
+ (UIColor *)appNavTitleColor;

//黑色字体颜色
+ (UIColor *)appBlackLabelColor;

//黑色字体颜色
+ (UIColor *)appBlack333LabelColor;

//蓝色字体颜色
+ (UIColor *)appBlueLabelColor;

//绿色字体颜色
+ (UIColor *)appGreenColor;

//红色字体颜色
+ (UIColor *)appRedLabelColor;

//灰色字体颜色
+ (UIColor *)appGrayLabelColor;

//灰色字体颜色
+ (UIColor *)appGrayB3LabelColor;

//A1灰色字体颜色
+ (UIColor *)appGrayA1LabelColor;

//F6灰色字体颜色
+ (UIColor *)appGrayF6LabelColor;

//666666灰色字体颜色
+ (UIColor *)appGray666LabelColor;

//白色字体颜色
+ (UIColor *)appWhiteLabelColor;

//橙色字体颜色
+ (UIColor *)appOrangeLabelColor;

//+ (UIColor *)colorWithHexString:(NSString *)color;

+ (void)configGradient:(UIView *)view StartPoint:(CGPoint)startPoint EndPoint:(CGPoint)endPoint  FirstColor:(UIColor *)firstColor SecondColor:(UIColor *)secondColor;




/**
 创建渐变颜色
 
 @param size       渐变的size
 @param direction  渐变方式
 @param startcolor 开始颜色
 @param endColor   结束颜色
 
 @return 创建的渐变颜色
 */
+ (instancetype)due_colorGradientChangeWithSize:(CGSize)size
                                     direction:(DUEGradientChangeDirection)direction
                                    startColor:(UIColor *)startcolor
                                      endColor:(UIColor *)endColor;

@end

NS_ASSUME_NONNULL_END
